package com.quanyan.common.constants;

/**
 * Created by Administrator on 2014/12/6.
 */
public class Constants {
    /*场地销售最小单位 分钟*/
    public static final int SALE_PLACE_UNIT_MIN_TIME_MINUTES = 60;
    public static final int ZERO = 0;

    public static final int IS_YES = 1;
    public static final int IS_NO = 0;


    public static final byte YES = 1;
    public static final byte NO = 0;

    public static final byte BYTE_ZERO = 0;
    public static final byte BYTE_ONE = 1;
    public static final byte BYTE_TWO = 2;
    public static final float FLOAT_PAUSE = 1.5f;//tb_club_activity暂停状态

    public static final int DEFAULT_PRIORITY = 0;  //默认优先级
    public static final byte DEFAULT_IS_RECOMMEND = 000;

    /**
     * solr 搜索参数
     */
    public static  final byte PLACE_IS_SALED=2;
    public static  final byte PLACE_IS_UNSALED=1;
    public static  final byte PLACE_IS_NOSALED=0;


    /**
     * 默认页数:1
     */
    public static final int DEFAULT_PAGE_NUM = 0;
    public static final int DEFAULT_PAGE_INDEX = 1;
    /**
     * 默认每页查询条数
     */
    public static final int DEFAULT_PAGE_SIZE = 20;

    public static final int DETAIL_PAGE_SIZE = 50;

    public static final int MAX_PAGE_SIZE = 999;

    public static final int IS_CHOOSE = 1;//已选中
    public static final int IS_NO_CHOOSE = 0;//未选中

    //记录是否删除
    public static final byte IS_DELETE_TRUE = 1; //已删除
    public static final byte IS_DELETE_FALSE = 0; //未删除

    //性别
    public static final byte GENDER_UNKONW = 0; //未知
    public static final byte GENDER_MALE = 1; //男
    public static final byte GENDER_FEMALE = 2; //女

    public static final byte IS_ENABLE_FALSE = 0; //未启用
    public static final byte IS_ENABLE_TRUE = 1;  //已启用

    public static final byte IS_EDITABLE_FALSE = 0; //不可编辑
    public static final byte IS_EDITABLE_TRUE = 1; //可编辑

    public static final Integer IS_ACTIVE = 1;
    public static final Integer IS_NOT_ACTIVE = 0;


    //审核状态
    public static final Byte AUDIT_STATUS_INIT = 0; //初始
    public static final Byte AUDIT_STATUS_AGREE = 1;//通过
    public static final Byte AUDIT_STATUS_REJECT = 2;//驳回


    public static final String COMMENT_PLACE_SEARCH_ORDER_ELEMENTS = "9999";//场馆搜索排序元素组ID
    public static final Double BEIJING_LNG = 116.46;
    public static final Double BEIJING_LAT = 39.92;


    public static final String COMMENT_PLACE_ELEMENTS = "9999";//场馆评价元素

    //客户端用户信息标示
    public static final String USER_INFORMATION_MARK = "userCookiesName";


    //获取评论项目详情
    public static final String USERCLIENT_GETCOMMENTDETAILPRO = "getCommentDetailPro";
    //用户收藏
    public static final String USERCLIENT_USERCOLLECT = "userCollect";
    //用户取消收藏
    public static final String USERCLIENT_CANCLEUSERCOLLECT = "cancleUserCollect";
    //用户收藏列表
    public static final String USERCLIENT_QUERYUSERCOLLECT = "queryUserCollect";
    //用户评价
    public static final String USERCLIENT_COMMENTADD = "commentAdd";
    //用户列表
    public static final String USERCLIENT_COMMENTLIST = "commentQuery";

    //评论
    public static final int USER_COMMENT_TYPE = 1;
    //回复
    public static final int USER_REPLY_TYPE = 2;


    //系统代码
    //各个系统编码
    public static final String ACTIVITY_SYSTEM_CODE = "ACTIVITY_SYSTEM_CODE"; //活动系统
    public static final String ASSETS_SYSTEM_CODE = "ASSETS_SYSTEM_CODE"; //资产系统(虚拟货币)
    public static final String CLUB_SYSTEM_CODE = "CLUB_SYSTEM_CODE"; //俱乐部系统
    public static final String TRAVEL_SYSTEM_CODE = "TRAVEL_SYSTEM_CODE"; //户外系统
    public static final String STADIUM_SYSTEM_CODE = "STADIUM_SYSTEM_CODE"; //运动场系统
    public static final String PLACE_SYSTEM_CODE = "PLACE_SYSTEM_CODE"; //场馆系统
    public static final String ORDER_SYSTEM_CODE = "ORDER_SYSTEM_CODE"; //订单系统
    public static final String CENTER_SYSTEM_CODE = "CENTER_SYSTEM_CODE"; //个人中心系统
    public static final String USER_CENTER_SYSTEM_CODE = "USER_CENTER_SYSTEM_CODE"; //用户中心系统
    public static final String AUCTION_SYSTEM_CODE = "AUCTION_SYSTEM_CODE"; //竞拍系统
    public static final String ONEPRICE_SYSTEM_CODE = "ONEPRICE_SYSTEM_CODE"; //一口价系统
    public static final String OPERATIVE_SYSTEM_CODE = "OPERATIVE_SYSTEM_CODE";//运营活动系统
    public static final String DAREN_SPARRING_SYSTEM_CODE = "DAREN_SPARRING_SYSTEM_CODE";//陪练系统

    public static final String DAREN_SYSTEM_CODE = "SYSTEM_DAREN";
    public static final String DAREN_business_code = "BUSINESS_DAREN_CODE";


    public static final String COMMENT_SYSTEM_CODE = "COMMENT_SYSTEM_CODE"; //资产(虚拟货币)

    public static final String SCENE_SYSTEM_CODE = "SCENE_SYSTEM_CODE"; //资产(虚拟货币)

    public static final String CATEGORY_SYSTEM_CODE = "CATEGORY_SYSTEM_CODE"; //资产(虚拟货币)




    //业务代码
    //资产系统业务代码
    public static final String ASSETS_EGGS_RECHANGE_CODE="ASSETS_EGGS_RECHANGE_CODE";  //鸟蛋充值
    public static final String ASSETS_ADMIN_ADD_EGGS_CODE="ASSETS_ADMIN_ADD_EGGS_CODE";  //人工发放鸟蛋
    public static final String USER_NOVICE_ADD_EGGS_CODE = "USER_NOVICE_ADD_EGGS_CODE"; //新手发放88个鸟蛋

    //用户中心业务码
    public static final String USER_CENTER_RANDOM_EGGS_CODE="USER_CENTER_RANDOM_EGGS_CODE";       //掏鸟蛋
    public static final String USER_CENTER_SHELL_BY_EGGS_RECHANGE_CODE="USER_CENTER_SHELL_BY_EGGS_RECHANGE_CODE";  //充值鸟蛋送蛋壳

    public static final String STADIUM_GAME_SIGN_BUSINESS_CODE = "STADIUM_GAME_SIGN_BUSINESS_CODE"; //运动场报名支付

    public static final String OPERATIVE_NEW_YEAR_LOTTERY_SUBEGG_CODE = "OPERATIVE_NEW_YEAR_LOTTERY_SUBEGG_CODE";

    //俱乐部业务系统代码
    public static final String CLUB_COLLECT_ACTIVITY_BUSINESS_CODE = "CLUB_COLLECT_ACTIVITY_BUSINESS_CODE"; //俱乐部活动收藏
    public static final String CLUB_ACTIVITY_COMMENT_BUSINESS_CODE = "CLUB_ACTIVITY_COMMENT_BUSINESS_CODE"; //俱乐部活动评论
    public static final String CLUB_ACTIVITY_ORDER_BUSINESS_CODE = "CLUB_ACTIVITY_ORDER_BUSINESS_CODE"; //俱乐部活动下单
    public static final String CLUB_ACTIVITY_REFUND_ORDER_BUSINESS_CODE = "CLUB_ACTIVITY_REFUND_ORDER_BUSINESS_CODE"; //俱乐部活动取消订单退款
    public static final String CLUB_ACTIVITY_AA_REFUND_ORDER_BUSINESS_CODE = "CLUB_ACTIVITY_AA_REFUND_ORDER_BUSINESS_CODE"; //俱乐部活动结算AA退款
    public static final String CLUB_MEMBER_EGGS_BUSINESS_CODE = "CLUB_MEMBER_EGGS_BUSINESS_CODE"; //俱乐部成员鸟蛋
    public static final String CLUB_WITHDRAW_BUSINESS_CODE = "CLUB_WITHDRAW_BUSINESS_CODE"; //俱乐部提现业务代码
    public static final String CLUB_MOVEMENT_BUSINESS_CODE = "CLUB_MOVEMENT_BUSINESS_CODE"; //俱乐部动态评论
    public static final String CLUB_CHANNEL_WITHDRAW_BUSINESS_CODE = "CLUB_CHANNEL_WITHDRAW_BUSINESS_CODE"; //俱乐部渠道拉新提现业务代码

    public static final String TRAVEL_ACTIVITY_COMMENT_CODE = "TRAVEL_ACTIVITY_COMMENT_CODE";

    public static final String CLUB_RECHARGE_CODE = "CLUB_RECHARGE_CODE";

    public static final String USER_CENTER_TASK_BUSINESS_CODE = "USER_CENTER_TASK_BUSINESS_CODE";//用户中心任务
    public static final String USER_CENTER_BOX_BUSINESS_CODE = "USER_CENTER_BOX_BUSINESS_CODE";//用户中心宝箱业务
    public static final String USER_CENTER_SHELL_BUSINESS_CODE = "USER_CENTER_SHELL_BUSINESS_CODE";//用户中心蛋壳业务

    //业务系统统一编号 用以生成业务系统订单号
    public static final String CLUB_SYSTEM = "A";//俱乐部
    public static final String ACTIVITY_SYSTEM = "B";//活动
    public static final String TRAVEL_SYSTEM = "C";//户外
    public static final String STADIUM_SYSTEM = "D";//运动场
    public static final String PLACE_SYSTEM = "E";//场馆
    public static final String ORDER_SYSTEM = "O"; //订单
    public static final String ASSETS_SYSTEM = "F"; //资产(虚拟货币)


    public static final  String SYSTEM_OUTDOOR = "001";//户外系统编码
    public static final String BUSINESS_OUTDOOR_CM="001001";//户外系统 评论业务编码

    public static final String AUCTION_WITHDRAW_BUSINESS_CODE = "AUCTION_WITHDRAW_BUSINESS_CODE";

    /**
     * 俱乐部角色
     */
    public static final class ClubRole{
        /** * 俱乐部主席*/
        public static final String CLUB_ROLE_PRESIDENT = "ROLE_CLUB_PRESIDENT";
        /** * 俱乐部财务管理员  */
        public static final String ROLE_CLUB_FINANCIAL  = "ROLE_CLUB_FINANCIAL";
        /** * 俱乐部管理员*/
        public static final String ROLE_CLUB_ADMIN = "ROLE_CLUB_ADMIN";
        /*** 普通成员*/
        public static final String ROLE_CLUB_MEMBER = "ROLE_CLUB_MEMBER";
    }


    /**
     * 登录方式
     */
    public static final class LoginType{

        public static final Integer VALID_CODE = 0; //验证码
    }

    /**
     * 用户认证
     */
    public static final class UserVerify{
        /** 未认证 **/
        public static final byte USER_VERIFY_INIT = 0;
        /** 认证中 **/
        public static final byte USER_VERIFY_DOING = 1;
        /** 认证通过 **/
        public static final byte USER_VERIFY_PASS = 2;
        /** 认证驳回 **/
        public static final byte USER_VERIFY_REJECT = 3;
    }

    /**
     * token过期时间：30天
     */
    public static final int TOKEN_EXPIRED_TIME = 30 * 24 * 60 * 60;

    public static final class LevelType{
        /**用户等级**/
        public static final byte USER_LEVEL = 1;
        /**俱乐部等级**/
        public static final byte CLUB_LEVEL = 2;
    }
    /**
     * 黄金时段常量定义
     */
    public static String PRIME_START_TIME="19:00:00";
    public static String PRIME_END_TIME="22:00:00";


    //场馆预定业务编码
    public static final String PLACE_BOOKING_CODE = "PLACE_BOOKING_BUSINESS_CODE";
    //门票预订业务编码
    public static final String PLACE_TICKET_CODE = "PLACE_TICKET_BUSINESS_CODE";
    //扫码支付业务编码
    public static final String PLACE_SCANPAY_CODE = "PLACE_SCANPAY_BUSINESS_CODE";
    //一元夺宝业务编码
    public static final String OPERATIVE_DUOBAO_CODE = "OPERATIVE_DUOBAO_CODE";
    //现金结算支付业务编码
    public static final String PLACE_CASH_SETTLE_CODE = "PLACE_CASH_SETTLE_BUSINESS_CODE";


    /**
     * 任务消息主题
     */
    public static String MQ_TOPIC_TASK_TOPIC = "MQ_USER_TASK_CENTER_TOPIC";

    /**
     * 任务消息tag
     */
    public static String MQ_TOPIC_TASK_TAG = "MQ_USER_TASK_CENTER_TAG";


    /**
     * 任务消息主题
     */
    public static String MQ_TOPIC_TASK_ACTIVITY_TOPIC = "MQ_USER_TASK_ACTIVITY_CENTER_TOPIC";

    /**
     * 任务消息tag
     */
    public static String MQ_TOPIC_TASK_ACTIVITY_TAG = "MQ_USER_TASK_ACTIVITY_CENTER_TAG";


    /**
     * 返回邀请状态
     */
    public static final class RespUserInviteStatus{

        /**
         * 已经注册
         */
        public static final byte REGISTER_ED = 1;

        /**
         * 已经邀请
         */
        public static final byte INVITE_ED = 2;

        /**
         * 未邀请
         */
        public static final byte INVITE = 3;

        /**
         * 邀请人不存在
         */
        public static final byte INVITE_NOT_EXIST = 4;
    }


    public static String LARK_LOGO = "lark_icon.png";

    /**
     * md5 key
     */
    public static final String SECRET_KEY = "quanyan2016";

    //客户端签名表示
    public static final String USER_SIGN = "sign";


    /**
     * 账号类型
     */
    public static final class RegType{
        /** 手机号注册***/
        public static final byte REG_MOBILE = 0;
        /** QQ注册 **/
        public static final byte REG_QQ = 1;
        /** 微信注册 **/
        public static final byte REG_WECHAT = 2;
        /** 微博注册 **/
        public static final byte REG_WEIBO = 3;
        /** H5注册 **/
        public static final byte REG_H5 = 4;
        /** 场馆会员注册 **/
        public static final byte BACKSTAGE = 5;



    }


    /**
     * 用户来源渠道（0、微信注册；1、app注册）
     */
    public static final class SourceChannel{
        /**
         * 微信
         */
        public static final byte WECHAT = 0;

        /**
         * APP
         */
        public static final byte APP = 1;


        /**
         * 后台
         */
        public static final byte BACKSTAGE = 2;

        /**
         * H5页面
         */
        public static final byte H5 = 4;

    }

    /**
     * 系统勋章类型
     */
    public static final class SystemMedalType{

        /**
         * 俱乐部勋章类型
         */
        public static final Integer CLUB_MEDAL_TYPE = 1;
        /**
         * 用户勋章类型
         */
        public static final Integer USER_MEDAL_TYPE = 2;
    }

    /**
     * 系统等级经验类型
     */
    public static final class SystemLevelType{

        /**
         * 俱乐部等级类型
         */
        public static final Integer CLUB_XP_TYPE = 2;
        /**
         * 用户等级类型
         */
        public static final Integer USER_XP_TYPE = 1;
    }

    /**
     *  场馆支付标识
     */
    public static final class SystemPayType{
        /**
         * 微信小程序散客支付
         */
        public static final String PLACE_WECHAT_TYPE_FITPAY = "placewechattypefitpay";
        public static final String PLACE_APP_TYPE_FITPAY = "placeapptypefitpay";
    }
    public static final int SHARE_TOKEN_EXPIRED_TIME = 60 * 24 * 60 * 60;

    //场馆订单topic
    public static final String PLACE_ORDER_TOPIC = "PLACE_ORDER_TOPIC";

    //场馆订单tag
    public static final String PLACE_ORDER_TAG = "PLACE_ORDER_TAG";


    /**
     * 通栏类型编码
     */
    public static final class ChannelModule{

        /**
         * 发现
         */
        public static final byte find_channel = 2;


    }


    /**
     * 通栏类型编码
     */
    public static final class ChannelCodeLayout{

        /**
         * 视屏
         */
        public static final byte video_type_code = 1;

        /**
         * 达人
         */
        public static final byte starDr_type_code = 2;

        /**
         * 动态
         */
        public static final byte dynamic_type_code =5;

        /**
         * 话题
         */
        public static final byte topic_type_code = 4;

    }



    public static final class SystemMoudle{

        public static final byte daren = 1 ; // 达人

        public static final byte club =  2;//俱乐部

        public static final byte place = 3 ; //场馆

        public static final byte game =  4 ; //俱乐部
    }

}
